package com.baibei.product.quotation;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.baibei.basic.SimpleViewHolder;
import com.baibei.product.R2;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 排行榜
 * Created by ChenRui on 2017/8/9 0009 15:23.
 */
public class RankingViewHolder extends SimpleViewHolder {

    @BindView(R2.id.tv_title)
    TextView mTitleView;

    @BindView(R2.id.img_product_flag)
    ImageView mAreaFlagView;

    @BindView(R2.id.tv_time)
    TextView mTimeView;

    @BindView(R2.id.tv_price)
    TextView mPriceView;

    @BindView(R2.id.btn_rose)
    TextView mRoseView;

    @BindView(R2.id.ll_rose)
    LinearLayout llRose;

    @BindView(R2.id.tv_rose)
    TextView tvRose;

    @BindView(R2.id.tv_pay_price)
    TextView tvPayPrice;

    public RankingViewHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }

    public TextView getTitleView() {
        return mTitleView;
    }

    public ImageView getAreaFlagView() {
        return mAreaFlagView;
    }

    public TextView getTimeView() {
        return mTimeView;
    }

    public TextView getPriceView() {
        return mPriceView;
    }

    public TextView getRoseView() {
        return mRoseView;
    }

    public LinearLayout getLlRose(){
        return llRose;
    }

    public TextView getTvRose(){
        return tvRose;
    }

    public TextView getTvPayPrice(){
        return tvPayPrice;
    }

    public void performItemClick(){
        itemView.performClick();
    }
}
